<template>
  <div>
    <h2>Child</h2>
    {{ msg }}
    <button @click="$emit('click', '子组件的数据')">给父组件传递数据</button>
  </div>
</template>

<script>
export default {
  // props: ['msg'],
}
</script>
<style
  lang="scss"
  scoped
></style>
